package Operation;

/**
 * Creat with IntelliJ IDEA
 * Description
 * User: mamba24
 * Date: 2022-04-13
 * Time: 15:47
 * To BE A Better Person-2020-3-2
 */

import Book.BookList;

import java.util.Scanner;

/**
 * 归还图书
 */
public class BackOp implements IOoperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("请输入归还书籍名称>:");
        Scanner sc= new Scanner(System.in);
        String name= sc.nextLine();
        for (int i = 0; i < bookList.Used; i++) {
            bookList.books[i].setBorrowed(true);
        }
        System.out.println("=========归还成功=========");
    }
}
